import request from "@/utils/request.js";
const chat = {
	// 用户获取消息房东列表
	getUserOwnerChatList: (data) => request.get("/api/chat/user_owner_list", data),
	// 获取用户消息列表
	getUserChatList: (data) => request.get("/api/chat/user_list", data),
	//用户发送消息
	postSendUserChat: (data) => request.post("/api/chat/user_send", data),
	//用户获取未读消息数量
	getUserUnReadNumber: (data) => request.get("/api/chat/user_unread_num", data),
	
	// 房东获取消息用户列表
	getOwnerUserChatList: (data) => request.get("/api/chat/owner_user_list", data),
	// 获取房东消息列表
	getOwnerChatList: (data) => request.get("/api/chat/owner_list", data),
	//房东发送消息
	postSendOwnerChat: (data) => request.post("/api/chat/owner_send", data),
	//房东获取未读消息数量
	getOwnerUnReadNumber: (data) => request.get("/api/chat/owner_unread_num", data),

	// 获取用户聊天记录
	getUserToUserChatList: (data) => request.get("/api/chat/user_to_user_chat_list", data),
	// 获取用户消息列表
	getUserToUserList: (data) => request.get("/api/chat/user_to_user_list", data),
	//用户发送消息
	postSendUserToUserChat: (data) => request.post("/api/chat/user_to_user_send", data),
	//用户之间未读消息数量
	getUserToUserUnReadNumber: (data) => request.get("/api/chat/user_to_user_unread_num", data),
}

export default chat;